﻿using ComicQ.Domain.Table;
using FluentNHibernate.Mapping;

namespace ComicQ.Domain.Mapping
{
    sealed class CommentMap : ClassMap<Comment>
    {
        public CommentMap()
        {
            Id(x => x.Id);
            References(x => x.Member).Cascade.None();
            References(x => x.Comic).Cascade.None();
            Map(x => x.Date);
            Map(x => x.Contents);
        }
    }
}
